import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import Plugin from 'v-fit-columns';
Vue.use(Plugin);

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import request from '@/utils/request'
import amendPwd from '@/components/amendPwd'

Vue.component("amendPwd", amendPwd);//全局自定义组件

import '@/icons' // icon
import '@/permission' // permission control
import moment from 'moment'//导入文件

import AFTableColumn from 'af-table-column'
const fontRate = {
  CHAR_RATE: 1.1, // 汉字比率
  NUM_RATE: 0.65, // 数字
  OTHER_RATE: 10 // 除汉字和数字以外的字符的比率
}
const fontSize = 20
Vue.use(AFTableColumn, { fontRate, fontSize })

Vue.prototype.$moment = moment;//赋值使用

// set ElementUI lang to EN
Vue.use(ElementUI)

Vue.prototype.req = request

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
